package com.qijian.quality.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qijian.quality.domain.FlowableUser;
import com.qijian.quality.domain.query.FlowableUserQuery;
import com.qijian.quality.domain.vo.FlowableUserVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 管理流程处理人Mapper接口
 *
 * @author qijian
 * @date 2022-04-06
 */
public interface FlowableUserMapper extends BaseMapper<FlowableUser> {

    @Select("select count(0) from qm_flowable_user WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    List<FlowableUserVo> selectVo(@Param(Constants.WRAPPER) QueryWrapper<FlowableUserQuery> queryWrapper);
}
